<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath}" var="ctx" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>考勤管理系统-新增组织架构</title>
<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
<script type="text/javascript" src="${ctx }/js/jquery.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		<c:forEach items="${urrd}" var="obj">
		$("#u_${obj.user.id}").prop("checked", true); 
		</c:forEach>
	});
</script>
</head>
<body>
	<form action="${ctx }/role/setting" method="post">
		<table>
			<tr>
				<td>角色ID：</td>
				<td>
					<input type="text" name="roleId" readonly="readonly" value="${r.roleId}"/>
				</td>
			</tr>
			<tr>
				<td>角色名称：</td>
				<td>
					<input type="text" name="roleName" readonly="readonly" value="${r.roleName}"/>
				</td>
			</tr>
			<tr>
				<td>用户：</td>
				<td>
					<div>
					<c:forEach items="${ud.rows}" var="obj">
						<span><input id="u_${obj.id}" type="checkbox" name="ur" value="${obj.id}" />${obj.trueName}</span>
					</c:forEach>
					<div>
				</td>
			</tr>
			<tr>
				<td clospan="2"><input type="submit" value="setting" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
